package com.dmgis.qxfw.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dmgis.qxfw.dao.ProcessRequestDaoI;

@Service
public class ProcessRequestServiceImpl implements ProcessRequestServiceI{

	@Autowired
	private ProcessRequestDaoI nyDaoI;
	@Override
	public <T> List<T> getData(String sql, String dbName,String userName,String pwd,
			Class<T> clazz) throws Exception{
		return nyDaoI.getData(sql, dbName, userName, pwd, clazz);
	}
	
	@Override
	public List<Map<String, Object>> selectData(String sql, String dbName,String userName,
			String pwd) throws Exception{
		return nyDaoI.selectData(sql, dbName, userName, pwd);
	}
	

	@Override
	public String delData(String sql, String dbName, String userName, String pwd) throws Exception{
		
		return nyDaoI.delData(sql, dbName, userName, pwd);
	}


	@Override
	public String updateData(String sql, String dbName, String userName, String pwd) throws Exception {
		// TODO Auto-generated method stub
		return nyDaoI.updateData(sql, dbName, userName, pwd);
	}


	@Override
	public String insertData(String sql, String dbName, String userName, String pwd) throws Exception {
		// TODO Auto-generated method stub
		return nyDaoI.insertData(sql, dbName, userName, pwd);
	}

}
